package exemple.DesignExample.dao;

import exemple.DesignExample.model.Entity;
import java.util.Collection;

public interface Dao<ENTITY extends Entity> {
    public void insert(ENTITY entity);
    public void update(ENTITY entity);
    public Collection<ENTITY> findAll();
    public ENTITY findById(ENTITY entity);
}